import com.jme3.system.JmeContext;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.stage.Stage;

import java.io.File;

public class Fx extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Drawing Operations Test");
        Group root = new Group();
        Canvas canvas = new Canvas(640, 480);

        root.getChildren().add(canvas);
        primaryStage.setScene(new Scene(root,700,500));
        Button button = new Button("12");

        root.getChildren().add(button);


        primaryStage.show();

        new App(canvas).start(JmeContext.Type.OffscreenSurface,false);
    }

    public static void main(String[] args) {
        launch(args);
        System.out.println(args);
    }
}
